3.1.25 \(\int \frac {A+B x+C x^2}{a+b x^2+c x^4} \, dx\) [25]
Optimal. Leaf size=211 \[ \frac {\left (C+\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (C-\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b+\sqrt {b^2-4 a c}}}-\frac {B \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{\sqrt {b^2-4 a c}} \]
[Out]
-B*arctanh((2*c*x^2+b)/(-4*a*c+b^2)^(1/2))/(-4*a*c+b^2)^(1/2)+1/2*arctan(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/
2))^(1/2))*(C+(2*A*c-C*b)/(-4*a*c+b^2)^(1/2))*2^(1/2)/c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2)+1/2*arctan(x*2^(1/2
)*c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2))*(C+(-2*A*c+C*b)/(-4*a*c+b^2)^(1/2))*2^(1/2)/c^(1/2)/(b+(-4*a*c+b^2)^(1
/2))^(1/2)
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 211, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {1687, 1180,
211, 12, 1121, 632, 212} \begin {gather*} \frac {\left (\frac {2 A c-b C}{\sqrt {b^2-4 a c}}+C\right ) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (C-\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {2} \sqrt {c} \sqrt {\sqrt {b^2-4 a c}+b}}-\frac {B \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{\sqrt {b^2-4 a c}} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[(A + B*x + C*x^2)/(a + b*x^2 + c*x^4),x]
[Out]
((C + (2*A*c - b*C)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*Sqrt[
c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((C - (2*A*c - b*C)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + S
qrt[b^2 - 4*a*c]]])/(Sqrt[2]*Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) - (B*ArcTanh[(b + 2*c*x^2)/Sqrt[b^2 - 4*a*c]
])/Sqrt[b^2 - 4*a*c]
Rule 12
Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] && !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]
Rule 211
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]
Rule 212
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
/; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])
Rule 632
Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]
Rule 1121
Int[(x_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Dist[1/2, Subst[Int[(a + b*x + c*x^2)^p, x],
x, x^2], x] /; FreeQ[{a, b, c, p}, x]
Rule 1180
Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]
Rule 1687
Int[(Pq_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Module[{q = Expon[Pq, x], k}, Int[Sum[Coeff[
Pq, x, 2*k]*x^(2*k), {k, 0, q/2}]*(a + b*x^2 + c*x^4)^p, x] + Int[x*Sum[Coeff[Pq, x, 2*k + 1]*x^(2*k), {k, 0,
(q - 1)/2}]*(a + b*x^2 + c*x^4)^p, x]] /; FreeQ[{a, b, c, p}, x] && PolyQ[Pq, x] && !PolyQ[Pq, x^2]
Rubi steps
\begin {align*} \int \frac {A+B x+C x^2}{a+b x^2+c x^4} \, dx &=\int \frac {B x}{a+b x^2+c x^4} \, dx+\int \frac {A+C x^2}{a+b x^2+c x^4} \, dx\\ &=B \int \frac {x}{a+b x^2+c x^4} \, dx+\frac {1}{2} \left (C-\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx+\frac {1}{2} \left (C+\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx\\ &=\frac {\left (C+\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (C-\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b+\sqrt {b^2-4 a c}}}+\frac {1}{2} B \text {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,x^2\right )\\ &=\frac {\left (C+\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (C-\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b+\sqrt {b^2-4 a c}}}-B \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^2\right )\\ &=\frac {\left (C+\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (C-\frac {2 A c-b C}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} \sqrt {c} \sqrt {b+\sqrt {b^2-4 a c}}}-\frac {B \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{\sqrt {b^2-4 a c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 234, normalized size = 1.11 \begin {gather*} \frac {\frac {\sqrt {2} \left (2 A c+\left (-b+\sqrt {b^2-4 a c}\right ) C\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\sqrt {2} \left (-2 A c+\left (b+\sqrt {b^2-4 a c}\right ) C\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {c} \sqrt {b+\sqrt {b^2-4 a c}}}+B \log \left (-b+\sqrt {b^2-4 a c}-2 c x^2\right )-B \log \left (b+\sqrt {b^2-4 a c}+2 c x^2\right )}{2 \sqrt {b^2-4 a c}} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[(A + B*x + C*x^2)/(a + b*x^2 + c*x^4),x]
[Out]
((Sqrt[2]*(2*A*c + (-b + Sqrt[b^2 - 4*a*c])*C)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[
c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*(-2*A*c + (b + Sqrt[b^2 - 4*a*c])*C)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqr
t[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + B*Log[-b + Sqrt[b^2 - 4*a*c] - 2*c*x^2] - B
*Log[b + Sqrt[b^2 - 4*a*c] + 2*c*x^2])/(2*Sqrt[b^2 - 4*a*c])
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 242, normalized size = 1.15
| | |
method |
result |
size |
| | |
risch |
\(\frac {\left (\munderset {\textit {\_R} =\RootOf \left (c \,\textit {\_Z}^{4}+\textit {\_Z}^{2} b +a \right )}{\sum }\frac {\left (C \,\textit {\_R}^{2}+B \textit {\_R} +A \right ) \ln \left (x -\textit {\_R} \right )}{2 c \,\textit {\_R}^{3}+\textit {\_R} b}\right )}{2}\) |
\(48\) |
default |
\(4 c \left (-\frac {\sqrt {-4 a c +b^{2}}\, \left (\frac {B \ln \left (-b -2 c \,x^{2}+\sqrt {-4 a c +b^{2}}\right )}{2}+\frac {\left (-2 A c -C \sqrt {-4 a c +b^{2}}+b C \right ) \sqrt {2}\, \arctanh \left (\frac {c x \sqrt {2}}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{4 c \left (4 a c -b^{2}\right )}+\frac {\sqrt {-4 a c +b^{2}}\, \left (\frac {B \ln \left (b +2 c \,x^{2}+\sqrt {-4 a c +b^{2}}\right )}{2}+\frac {\left (2 A c -C \sqrt {-4 a c +b^{2}}-b C \right ) \sqrt {2}\, \arctan \left (\frac {c x \sqrt {2}}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{4 c \left (4 a c -b^{2}\right )}\right )\) |
\(242\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((C*x^2+B*x+A)/(c*x^4+b*x^2+a),x,method=_RETURNVERBOSE)
[Out]
4*c*(-1/4*(-4*a*c+b^2)^(1/2)/c/(4*a*c-b^2)*(1/2*B*ln(-b-2*c*x^2+(-4*a*c+b^2)^(1/2))+1/2*(-2*A*c-C*(-4*a*c+b^2)
^(1/2)+b*C)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)))+
1/4*(-4*a*c+b^2)^(1/2)/c/(4*a*c-b^2)*(1/2*B*ln(b+2*c*x^2+(-4*a*c+b^2)^(1/2))+1/2*(2*A*c-C*(-4*a*c+b^2)^(1/2)-b
*C)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))))
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((C*x^2+B*x+A)/(c*x^4+b*x^2+a),x, algorithm="maxima")
[Out]
integrate((C*x^2 + B*x + A)/(c*x^4 + b*x^2 + a), x)
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 27.60, size = 578003, normalized size = 2739.35 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((C*x^2+B*x+A)/(c*x^4+b*x^2+a),x, algorithm="fricas")
[Out]
-1/12*(2*(1/4)^(2/3)*(-I*sqrt(3) + 1)*(3*(4*(b^2 - 4*a*c)^(3/2)*A*C*a*c - (b^4*c - 8*a*b^2*c^2 + 16*a^2*c^3 +
(b^2 - 4*a*c)^(3/2)*b*c)*A^2 + 2*(4*sqrt(b^2 - 4*a*c)*a^2*c^2 - (sqrt(b^2 - 4*a*c)*b^2*c - 2*(b^2 - 4*a*c)^(3/
2)*c)*a)*B^2 - (8*a^2*b^2*c - 16*a^3*c^2 - (b^4 - (b^2 - 4*a*c)^(3/2)*b)*a)*C^2 - 4*(sqrt(1/2)*a*b^4*c*sqrt(-(
C^2*a*b - (4*A*C*a - A^2*b)*c + (C^2*a - A^2*c)*sqrt(b^2 - 4*a*c))/(a*b^2*c - 4*a^2*c^2)) - 8*sqrt(1/2)*a^2*b^
2*c^2*sqrt(-(C^2*a*b - (4*A*C*a - A^2*b)*c + (C^2*a - A^2*c)*sqrt(b^2 - 4*a*c))/(a*b^2*c - 4*a^2*c^2)) + 16*sq
rt(1/2)*a^3*c^3*sqrt(-(C^2*a*b - (4*A*C*a - A^2*b)*c + (C^2*a - A^2*c)*sqrt(b^2 - 4*a*c))/(a*b^2*c - 4*a^2*c^2
)))*B)/((b^2 - 4*a*c)^(3/2)*a*b^2*c - 4*(b^2 - 4*a*c)^(3/2)*a^2*c^2) + 2*(sqrt(1/2)*(b^2 - 4*a*c)^(3/2)*sqrt(-
(C^2*a*b - (4*A*C*a - A^2*b)*c + (C^2*a - A^2*c)*sqrt(b^2 - 4*a*c))/(a*b^2*c - 4*a^2*c^2)) + (b^2 - 4*a*c)*B)^
2/(b^2 - 4*a*c)^3)/(27*(sqrt(1/2)*(b^2 - 4*a*c)^(3/2)*a*b^2*c*(-(C^2*a*b - (4*A*C*a - A^2*b)*c + (C^2*a - A^2*
c)*sqrt(b^ ...
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((C*x**2+B*x+A)/(c*x**4+b*x**2+a),x)
[Out]
Timed out
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1712 vs.
\(2 (171) = 342\).
time = 6.86, size = 1712, normalized size = 8.11 \begin {gather*} \frac {{\left (b^{2} c^{2} - 4 \, a c^{3} - 2 \, b c^{3} + c^{4}\right )} \sqrt {b^{2} - 4 \, a c} B \log \left (x^{2} + \frac {b - \sqrt {b^{2} - 4 \, a c}}{2 \, c}\right )}{2 \, {\left (b^{4} - 8 \, a b^{2} c - 2 \, b^{3} c + 16 \, a^{2} c^{2} + 8 \, a b c^{2} + b^{2} c^{2} - 4 \, a c^{3}\right )} c^{2}} + \frac {{\left ({\left (\sqrt {2} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} b^{4} - 8 \, \sqrt {2} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a b^{2} c - 2 \, \sqrt {2} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} b^{3} c - 2 \, b^{4} c + 16 \, \sqrt {2} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a^{2} c^{2} + 8 \, \sqrt {2} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a b c^{2} + \sqrt {2} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} b^{2} c^{2} + 16 \, a b^{2} c^{2} - 2 \, b^{3} c^{2} - 4 \, \sqrt {2} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a c^{3} - 32 \, a^{2} c^{3} + 8 \, a b c^{3} + \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} b^{3} - 4 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a b c - 2 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} b^{2} c + \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} b c^{2} + 2 \, {\left (b^{2} - 4 \, a c\right )} b^{2} c - 8 \, {\left (b^{2} - 4 \, a c\right )} a c^{2} + 2 \, {\left (b^{2} - 4 \, a c\right )} b c^{2}\right )} A + 2 \, {\left (2 \, a b^{2} c^{2} - 8 \, a^{2} c^{3} - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a b^{2} + 4 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a^{2} c + 2 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a b c - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c + \sqrt {b^{2} - 4 \, a c} c} a c^{2} - 2 \, {\left (b^{2} - 4 \, a c\right )} a c^{2}\right )} C\right )} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} x}{\sqrt {\frac {b + \sqrt {b^{2} - 4 \, a c}}{c}}}\right )}{4 \, {\left (a b^{4} - 8 \, a^{2} b^{2} c - 2 \, a b^{3} c + 16 \, a^{3} c^{2} + 8 \, a^{2} b c^{2} + a b^{2} c^{2} - 4 \, a^{2} c^{3}\right )} {\left | c \right |}} + \frac {{\left ({\left (\sqrt {2} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} b^{4} - 8 \, \sqrt {2} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a b^{2} c - 2 \, \sqrt {2} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} b^{3} c + 2 \, b^{4} c + 16 \, \sqrt {2} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a^{2} c^{2} + 8 \, \sqrt {2} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a b c^{2} + \sqrt {2} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} b^{2} c^{2} - 16 \, a b^{2} c^{2} + 2 \, b^{3} c^{2} - 4 \, \sqrt {2} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a c^{3} + 32 \, a^{2} c^{3} - 8 \, a b c^{3} - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} b^{3} + 4 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a b c + 2 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} b^{2} c - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} b c^{2} - 2 \, {\left (b^{2} - 4 \, a c\right )} b^{2} c + 8 \, {\left (b^{2} - 4 \, a c\right )} a c^{2} - 2 \, {\left (b^{2} - 4 \, a c\right )} b c^{2}\right )} A - 2 \, {\left (2 \, a b^{2} c^{2} - 8 \, a^{2} c^{3} - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a b^{2} + 4 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a^{2} c + 2 \, \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a b c - \sqrt {2} \sqrt {b^{2} - 4 \, a c} \sqrt {b c - \sqrt {b^{2} - 4 \, a c} c} a c^{2} - 2 \, {\left (b^{2} - 4 \, a c\right )} a c^{2}\right )} C\right )} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} x}{\sqrt {\frac {b - \sqrt {b^{2} - 4 \, a c}}{c}}}\right )}{4 \, {\left (a b^{4} - 8 \, a^{2} b^{2} c - 2 \, a b^{3} c + 16 \, a^{3} c^{2} + 8 \, a^{2} b c^{2} + a b^{2} c^{2} - 4 \, a^{2} c^{3}\right )} {\left | c \right |}} + \frac {{\left (b^{5} c - 8 \, a b^{3} c^{2} - 2 \, b^{4} c^{2} + 16 \, a^{2} b c^{3} + 8 \, a b^{2} c^{3} + b^{3} c^{3} - 4 \, a b c^{4} + {\left (b^{4} c - 6 \, a b^{2} c^{2} - 2 \, b^{3} c^{2} + 8 \, a^{2} c^{3} + 4 \, a b c^{3} + b^{2} c^{3} - 2 \, a c^{4}\right )} \sqrt {b^{2} - 4 \, a c}\right )} B \log \left (x^{2} + \frac {b + \sqrt {b^{2} - 4 \, a c}}{2 \, c}\right )}{4 \, {\left (a b^{4} - 8 \, a^{2} b^{2} c - 2 \, a b^{3} c + 16 \, a^{3} c^{2} + 8 \, a^{2} b c^{2} + a b^{2} c^{2} - 4 \, a^{2} c^{3}\right )} c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((C*x^2+B*x+A)/(c*x^4+b*x^2+a),x, algorithm="giac")
[Out]
1/2*(b^2*c^2 - 4*a*c^3 - 2*b*c^3 + c^4)*sqrt(b^2 - 4*a*c)*B*log(x^2 + 1/2*(b - sqrt(b^2 - 4*a*c))/c)/((b^4 - 8
*a*b^2*c - 2*b^3*c + 16*a^2*c^2 + 8*a*b*c^2 + b^2*c^2 - 4*a*c^3)*c^2) + 1/4*((sqrt(2)*sqrt(b*c + sqrt(b^2 - 4*
a*c)*c)*b^4 - 8*sqrt(2)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b^2*c - 2*sqrt(2)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b^
3*c - 2*b^4*c + 16*sqrt(2)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^2*c^2 + 8*sqrt(2)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)
*a*b*c^2 + sqrt(2)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b^2*c^2 + 16*a*b^2*c^2 - 2*b^3*c^2 - 4*sqrt(2)*sqrt(b*c + s
qrt(b^2 - 4*a*c)*c)*a*c^3 - 32*a^2*c^3 + 8*a*b*c^3 + sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)
*b^3 - 4*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b*c - 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*
c + sqrt(b^2 - 4*a*c)*c)*b^2*c + sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b*c^2 + 2*(b^2 - 4*
a*c)*b^2*c - 8*(b^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2*sqrt(2)*
sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*b^2*c - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*
c)*c)*b*c^2 - 2*(b^2 - 4*a*c)*b^2*c + 8*(b^2 - 4*a*c)*a*c^2 - 2*(b^2 - 4*a*c)*b*c^2)*A - 2*(2*a*b^2*c^2 - 8*a^
2*c^3 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b^2 + 4*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c
- sqrt(b^2 - 4*a*c)*c)*a^2*c + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b*c - sqrt(2)*sq
rt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*c^2 - 2*(b^2 - 4*a*c)*a*c^2)*C)*arctan(2*sqrt(1/2)*x/sqrt((b
- sqrt(b^2 - 4*a*c))/c))/((a*b^4 - 8*a^2*b^2*c - 2*a*b^3*c + 16*a^3*c^2 + 8*a^2*b*c^2 + a*b^2*c^2 - 4*a^2*c^3
)*abs(c)) + 1/4*(b^5*c - 8*a*b^3*c^2 - 2*b^4*c^2 + 16*a^2*b*c^3 + 8*a*b^2*c^3 + b^3*c^3 - 4*a*b*c^4 + (b^4*c -
6*a*b^2*c^2 - 2*b^3*c^2 + 8*a^2*c^3 + 4*a*b*c^3 + b^2*c^3 - 2*a*c^4)*sqrt(b^2 - 4*a*c))*B*log(x^2 + 1/2*(b +
sqrt(b^2 - 4*a*c))/c)/((a*b^4 - 8*a^2*b^2*c - 2*a*b^3*c + 16*a^3*c^2 + 8*a^2*b*c^2 + a*b^2*c^2 - 4*a^2*c^3)*c^
2)
________________________________________________________________________________________
Mupad [B]
time = 2.31, size = 2500, normalized size = 11.85 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A + B*x + C*x^2)/(a + b*x^2 + c*x^4),x)
[Out]
symsum(log(A*B^2*c^2 - A^2*C*c^2 + B^3*c^2*x - C^3*a*c + A*C^2*b*c - 8*root(16*a*b^4*c*z^4 - 128*a^2*b^2*c^2*z
^4 + 256*a^3*c^3*z^4 - 16*A*C*a*b^2*c*z^2 - 16*C^2*a^2*b*c*z^2 - 8*B^2*a*b^2*c*z^2 - 16*A^2*a*b*c^2*z^2 + 64*A
*C*a^2*c^2*z^2 + 4*C^2*a*b^3*z^2 + 4*A^2*b^3*c*z^2 + 32*B^2*a^2*c^2*z^2 + 16*B*C^2*a^2*c*z + 4*A^2*B*b^2*c*z -
4*B*C^2*a*b^2*z - 16*A^2*B*a*c^2*z - 4*A*B^2*C*a*c + 2*A^2*C^2*a*c - 2*A^3*C*b*c - 2*A*C^3*a*b + B^2*C^2*a*b
+ A^2*B^2*b*c + B^4*a*c + A^2*C^2*b^2 + C^4*a^2 + A^4*c^2, z, k)^3*b^3*c^2*x - 16*A*root(16*a*b^4*c*z^4 - 128*
a^2*b^2*c^2*z^4 + 256*a^3*c^3*z^4 - 16*A*C*a*b^2*c*z^2 - 16*C^2*a^2*b*c*z^2 - 8*B^2*a*b^2*c*z^2 - 16*A^2*a*b*c
^2*z^2 + 64*A*C*a^2*c^2*z^2 + 4*C^2*a*b^3*z^2 + 4*A^2*b^3*c*z^2 + 32*B^2*a^2*c^2*z^2 + 16*B*C^2*a^2*c*z + 4*A^
2*B*b^2*c*z - 4*B*C^2*a*b^2*z - 16*A^2*B*a*c^2*z - 4*A*B^2*C*a*c + 2*A^2*C^2*a*c - 2*A^3*C*b*c - 2*A*C^3*a*b +
B^2*C^2*a*b + A^2*B^2*b*c + B^4*a*c + A^2*C^2*b^2 + C^4*a^2 + A^4*c^2, z, k)^2*a*c^3 - 4*A^2*root(16*a*b^4*c*
z^4 - 128*a^2*b^2*c^2*z^4 + 256*a^3*c^3*z^4 -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3*z^2 + 4*A^2*b^3*c*z^2 + 32*B^2*a^2*c^2*z^2 + 16*B*C^2*a^2*c*z + 4*A^2*
B*b^2*c*z - 4*B*C^2*a*b^2*z - 16*A^2*B*a*c^2*z - 4*A*B^2*C*a*c + 2*A^2*C^2*a*c - 2*A^3*C*b*c - 2*A*C^3*a*b + B
^2*C^2*a*b + A^2*B^2*b*c + B^4*a*c + A^2*C^2*b^2 + C^4*a^2 + A^4*c^2, z, k)*b*c^2*x + 4*C^2*root(16*a*b^4*c*z^
4 - 128*a^2*b^2*c^2*z^4 + 256*a^3*c^3*z^4 - 16*A*C*a*b^2*c*z^2 - 16*C^2*a^2*b*c*z^2 - 8*B^2*a*b^2*c*z^2 - 16*A
^2*a*b*c^2*z^2 + 64*A*C*a^2*c^2*z^2 + 4*C^2*a*b^3*z^2 + 4*A^2*b^3*c*z^2 + 32*B^2*a^2*c^2*z^2 + 16*B*C^2*a^2*c*
z + 4*A^2*B*b^2*c*z - 4*B*C^2*a*b^2*z - 16*A^2*B*a*c^2*z - 4*A*B^2*C*a*c + 2*A^2*C^2*a*c - 2*A^3*C*b*c - 2*A*C
^3*a*b + B^2*C^2*a*b + A^2*B^2*b*c + B^4*a*c + ...
________________________________________________________________________________________